import React, { Component } from 'react';
// this.props.children 是 React 中插槽部分
class Hello extends React.Component{
  render(){
    return <div>
      <h1>Hello组件 {this.props.children}</h1>
    </div>
  }
}
class App extends Component {
  render() {
    return (
      <div>
        <Hello>我是子节点</Hello>
      </div>
    );
  }
}

export default App;
